from flask import Flask
from flask import render_template

app = Flask(__name__)

@app.route('/',methods=['GET','POST'])
def hello_world():
    return 'Hello, World!'


@app.route('/orders/<int:order_id>', methods=['GET', 'POST'])
def get_order_id(order_id):
    return str(order_id)


@app.route('/html')
def HTML():
    return render_template('index.html', message='传递过来的参数')

if __name__ == "__main__":
    app.run(debug=True)
